package com.qf.cosmetology;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement//开启事务
@SpringBootApplication
@MapperScan("com.qf.cosmetology.dao")
//dao是接口无实现类，一般不在借口前面加注解，因为接口是暴露的
//在主类中加注解扫描dao层
public class CosmetologyApplication {

    public static void main(String[] args) {
        SpringApplication.run(CosmetologyApplication.class, args);
    }

}
